package pe.edu.upla.lamerced.bean;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

// Generated 30/07/2010 10:51:09 PM by Hibernate Tools 3.2.4.GA

/**
 * ROLE_USER
 * ROLE_ADMIN
 */
public class Authorities implements java.io.Serializable {

	private AuthoritiesId id;
	private Users username;

	public Authorities() {
	}

	public Authorities(AuthoritiesId id, Users users) {
		this.id = id;
		this.username = users;
	}

	public AuthoritiesId getId() {
		return this.id;
	}

	public void setId(AuthoritiesId id) {
		this.id = id;
	}

	public Users getUsername() {
		return this.username;
	}

	public void setUsername(Users users) {
		this.username = users;
	}
	@Override
	public String toString() {
		return ReflectionToStringBuilder.toString(this,ToStringStyle.MULTI_LINE_STYLE);
	}
}
